package com.my.commonlib.event;

public class EventTypeLoginOrLoginOut {

    public static final int TYPE_LOGIN = 0, TYPE_LOGIN_OUT = 1;
    public static final int TYPE_REGISTER = 2,TYPE_UPDATE_UINFO=3;
    private int loginType;//0:登陆 1:登出 ;2:注册；3，修改用户信息

    public EventTypeLoginOrLoginOut(int loginType) {
        this.loginType = loginType;
    }

    public int getLoginType() {
        return loginType;
    }

    public void setLoginType(int loginType) {
        this.loginType = loginType;
    }

    public boolean isLogin(){
        return loginType == TYPE_LOGIN;
    }

    @Override
    public String toString() {
        return "EventTypeLoginOrLoginOut{" +
                "loginType=" + loginType +
                '}';
    }
}
